package com.xuzimian.globaldemo.spring.springrpc.burlap;

import com.xuzimian.globaldemo.spring.springrpc.RemoteServerPublisService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.caucho.BurlapProxyFactoryBean;


@Configuration
public class ClientBurlapConfig {

	/**
	 * 端口号可能有冲突，请修改端口号
	 * @return
	 */
	@Bean(name="burlapService")
	public BurlapProxyFactoryBean remoteServerPublisService() {
		BurlapProxyFactoryBean proxyFactoryBean=new BurlapProxyFactoryBean();
		proxyFactoryBean.setServiceUrl("http://localhost:8080/xx/burlapremote.burlapservice");
		proxyFactoryBean.setServiceInterface(RemoteServerPublisService.class);
		return proxyFactoryBean;
	}
}
